import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import toast from './components/common/toast/index'
import fastclick from 'fastclick'
import VueLazyload from 'vue-lazyload'

//图片懒加载
Vue.use(VueLazyload, {
  loading: require('assets/images/common/placeholder.png')
})

Vue.config.productionTip = false

//添加事件总线对象
Vue.prototype.$bus = new Vue()

//安装toast插件
Vue.use(toast)

//解决移动端300ms的延迟
fastclick.attach(document.body)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
